package com.sxhuayuan.parking;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = "com.sxhuayuan.parking")
@EntityScan(basePackages = "com.sxhuayuan.parking.entity")
@EnableAspectJAutoProxy // 开启aop代理
@EnableAutoConfiguration // 开启配置文件自动注
@EnableCaching
@EnableScheduling
@EnableTransactionManagement
@EnableRabbit // 开启rabbitmq注解模式
public class ParkingServerApplication {// SpringBootServletInitializer
	/***/
	public static void main(String[] args) {
		SpringApplication.run(ParkingServerApplication.class, args);
		System.setProperty("system.project_name", "parking_server_system");
	}

	// @Override
	// protected SpringApplicationBuilder configure(SpringApplicationBuilder
	// builder) {
	// return builder.sources(ParkingServerApplication.class);
	// }
}